let BASE_URL = ''
let IMG_URL=''

let devHttp='http://127.0.0.1:8080';
// let devHttp='http://192.168.100.36:9110';//单位
// let devHttp='http://192.168.31.18:9110';//家1
//let devHttp='http://123.57.20.65';
// let devHttp='http://192.168.1.101:9110';//家2
let pubHttp='http://47.94.240.95:8080'

//后台问题，这里都用开发环境
if (process.env.NODE_ENV == 'development') {
	BASE_URL =  devHttp+'/das/rest'; // 开发环境
	IMG_URL = devHttp+'/das/img/server';//开发环境
} else {
	BASE_URL =  pubHttp+'/das/rest'; // 开发环境
	IMG_URL = pubHttp+'/das/img/server';//开发环境
	// BASE_URL = pubHttp+'/rest';  // 生产环境
	// IMG_URL = pubHttp+'/img/server' // 生产环境
}

let staticDomainURL = BASE_URL+ '/sys/common/static';//暂时无用

const configService = {
	apiUrl: BASE_URL,
	imgUrl:IMG_URL,
	staticDomainURL: staticDomainURL
};

export default configService